package com.summer.data.jql.builder;

import com.summer.data.Jsql;
import com.summer.data.dialect.Dialect;
import com.summer.data.jql.Context;
import com.summer.data.jql.JsqlAble;
import com.summer.data.jql.compose.FilterPack;

/**
 * @author 345480567@qq.com
 */
public class OnBuilder extends FilterPack implements JsqlAble {

    Context ctx;

    public OnBuilder(Context ctx) {
        this.ctx = ctx;
    }

    @Override
    public Jsql buildJsql(Dialect dialect) {
        return Jsql.format("    ON %s ", toFilterJsql(ctx, dialect));
    }

}

